<!DOCTYPE html>
<html ng-controller="appCtrl" data-ng-init="initTestUser();">
	<head>
		<meta charset="UTF-8">
		<title>贵州行政审批系统</title>
		<link rel="stylesheet" href="style/init.css">
	    <link rel="stylesheet" href="style/plugin.css">
	    <link rel="stylesheet" href="style/gis.css">
	    <link rel="stylesheet" href="style/skin.css">
	    <link rel="stylesheet" type="text/css" href="http://localhost/web-base/jquery-easyui/v1.5.2/themes/bootstrap/easyui.css">
    	<link rel="stylesheet" type="text/css" href="http://localhost/web-base/jquery-easyui/v1.5.2/themes/icon.css">
	</head>
	<body data-ng-init="findWork(initDemo);">
		<div class="zs-sys-header">
			<div class="tools">
				<a href="javascript:;" class="tg" ng-show="demo.auth.opt_tj" ng-click="getNextTask('demo');">通过</a>
				<a href="javascript:;" ng-show="demo.auth.opt_tz" class="tz" ng-click="getSkipTask('demo');">跳转</a>
				<a href="javascript:;" ng-show="demo.auth.opt_bc" class="bc" ng-click="bpmSave('demo')">保存</a>
				<!--<a href="javascript:;" class="txsc" >图形审查</a>
				<a href="javascript:;" class="zj">自检</a>-->
				<a href="javascript:;" class="blgc" ng-click="loadBpmProcess('demo')">办理过程</a>
				<a href="javascript:;" ng-show="demo.auth.opt_cx" class="tj" ng-click="disposal('demo')">退件</a>
				<a href="javascript:;"  class="bh" ng-click="userDispose('demo','自定义结束')">自定义结束</a>
<!--				<a href="javascript:;" class="gb">关闭</a>
				<a href="javascript:;"  class="bh" >驳回</a>-->
<!--				<a href="javascript:;" ng-show="demo.auth.opt_ch" class="ch">撤回</a>
				<a href="javascript:;" class="dy">打印</a>
				<a href="javascript:;" ng-show="demo.auth.opt_gq" class="gq">挂起</a>-->
				<a href="javascript:;" ng-show="demo.auth.opt_jh" class="jh" ng-click="easter('demo')">激活</a>
				<!--<a href="javascript:;" ng-show="demo.auth.opt_jg" class="jg">解挂</a>-->
			<!--	<a href="javascript:;" class="ldsc">林地审查</a>
				<a href="javascript:;" class="sl">受理</a>
				<a href="javascript:;" class="tijiao">提交</a>-->
				<a href="javascript:;" ng-show="demo.auth.opt_th" ng-click="getBackTask('demo');"
					 class="th" ng-show="demo.auth.opt_th" >退回</a>
				<!--<a href="javascript:;" class="xmsc">项目审查</a>-->
			</div>
		</div>
		<div class="zs-sys-body" ui-view="panel">
			
		</div>
		<!-- 提交操作 -s -->
		<div ag-Window id="opt_tj" title="提交" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in demo.opttj.nextTask">
	                                <td >
	                                	<input type="checkbox" ng-model="task.taskSelect"
	                                 	ng-if="demo.opttj.selectTask"
	                                 	ng-click="selectTjTask('demo',task);"
										ng-true-value="true" ng-false-value="false"> 
										<label ng-bind="task.taskName"></label>  </td>
	                                <td ><span ng-repeat="iuser in task.user">
	                                <input type="checkbox" ng-model="iuser.userSelected"
	                                	ng-click="selectTjUser('demo',task,iuser);"
										ng-true-value="true" ng-false-value="false"> 

									<label ng-bind="iuser.userName"></label>

	                                </span></td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="2">
				                    <input type="button" name="ok" value="提交" class="zs-btn c-red"
				                    	ng-click="bpmValidate('demo') && signTask('demo')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_tj') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 提交操作 -e -->
	    
	    <!-- 退回操作 -s -->
		<div ag-Window id="opt_back" title="退回" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in demo.optback.nextTask">
                                <td >
                                	<input type="checkbox" ng-model="task.taskSelect"
                                 	ng-if="demo.optback.selectTask"
                                 	ng-click="selectBackTask('demo',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
                                </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="sendBack('demo')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_back') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 退回操作 -e -->
	    
	    <!-- 跳转操作 -s -->
		<div ag-Window id="opt_skip" title="跳转" width='320px' height='240px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table>
				        <tbody>
				        	<tr ng-repeat="task in demo.optskip.nextTask">
                                <td >
                                	<input type="checkbox" ng-model="task.taskSelect"
                                 	ng-if="demo.optskip.selectTask"
                                 	ng-click="selectSkipTask('demo',task);"
									ng-true-value="true" ng-false-value="false"> 
									<label ng-bind="task.taskName"></label>  
                                </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td>
				                    <input type="button" name="ok" value="确定" class="zs-btn c-red"
				                    	ng-click="skipTask('demo')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('opt_skip') 
				                    	" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	    <!-- 跳转操作 -e -->

	    <!-- 办理过程 -s -->
		<div ag-Window id="opt_blgc" title="办理过程" style="width:900px;height:500px;" 
			data-ng-init="setTab('opt_blgc','process')">
			<div class="zs-nice-tab idTabs">
	    		<div class="link">
	    			<a class="{{tabs['opt_blgc'].tabClass['process']}}" ng-click="setTab('opt_blgc','process')">办理过程</a>
		    		<a class="{{tabs['opt_blgc'].tabClass['image']}}" ng-click="setTab('opt_blgc','image')">流程图</a>
	    		</div>
	    	</div>
	        <div class="zs-form-tab ibox" ng-show="tabs['opt_blgc'].tabClass['process']">
	        	<form name="form" novalidate>
				    <table>
				        <tbody>
				        	<tr>
				        		<td class="head" width="80px">业务来源</td>
								<td class="head" width="100px">环节名称</td>
								<td class="head" width="80px">办理人</td>
								<td class="head" width="80px">办理部门</td>
								<td class="head" width="150px">接收日期</td>
								<td class="head" width="150px">办理日期</td>
			<!-- 					<td class="head" width="80px">办理限期</td> -->
								<td class="head" width="80px">办理结果</td>
								<td class="head" width="100px">详细情况</td>
				            </tr>

				            <tr ng-repeat="curRow in demo.historyLst">
								<td><label ng-bind="curRow.fromassigneesname"></label></td>
								<td><label ng-bind="curRow.taskdefname"></label></td>
								<td><label ng-bind="curRow.optassigneesname"></label></td>
								<td><label ng-bind="curRow.optorgname"></label></td>
								<td><label ng-bind="curRow.fromtime | asDate | date:'yyyy-MM-dd HH时'"></label></td>
								<td><label ng-bind="curRow.opttime | asDate | date:'yyyy-MM-dd HH时'"></label></td>
								<td><label ng-bind="curRow.optresult"></label></td>
								<td><a title="{{curRow.optcontent}}"><label ng-bind="curRow.optcontent"></label></a></td>
							</tr>

				        </tbody>
				    </table>
				</form>
			</div>
			 <div class="zs-form-tab ibox" ng-show="tabs['opt_blgc'].tabClass['image']">
			<!--	<img ng-src="{{getServerBaseUrl()/processImage/loadImage?bpmkey=demo.bpmkey&sexeid=demo.sexeid}}"></img>-->
				<img align="center" id="bpm_img" ng-src="{{demo.loadImage}}" />
			</div>
	    </div>
	    <!-- 办理过程 -e -->
		<div class="zs-sys-footer">
			<span>版权所有(c)</span>
			<span>技术支持：</span>
			<span>联系电话：</span>
		</div>
		<script type="text/javascript" src="script/jquery.1.9.1.min.js"></script>
	    <script type="text/javascript" src="script/jquery.tipTip.js"></script>
	    <script type="text/javascript" src="script/jquery.ibox.3.0.js"></script>
	    <script type="text/javascript" src="script/jquery.itabExtend.js"></script>
	    <script type="text/javascript" src="script/jquery.itab.js"></script>    
	    <script type="text/javascript" src="script/zs.layout.js"></script>
	    <script type="text/javascript" src="script/zs.core.js"></script>

	     <script type="text/javascript" src="http://localhost/web-base/jquery/v1.7.2/jquery.min.js"></script>
	    <script type="text/javascript" src="http://localhost/web-base/jquery-easyui/v1.5.2/jquery.easyui.min.js"></script>
	    <script type="text/javascript" src="http://localhost/web-base/jquery-easyui/v1.5.2/locale/easyui-lang-zh_CN.js"></script>

	    <script type="text/javascript" src="script/jquery.tipTip.js"></script>
	    <script type="text/javascript" src="script/jquery.ibox.3.0.js"></script>
	    <script type="text/javascript" src="script/jquery.itabExtend.js"></script>
	    <script type="text/javascript" src="script/jquery.itab.js"></script>    
	    <script type="text/javascript" src="script/zs.layout.js"></script>
	    <script type="text/javascript" src="script/zs.core.js"></script>
	    
	    <!-- 基础参数初始化 -->
	    <script type="text/javascript" src="init.js"></script>

	    <!-- 业务代码初始化 -->
	    <script src="http://localhost/web-base/require/v2.3.3/require.min.js" data-main="main.js"></script>
	</body>
</html>
